{% extends "/dbconfig/css.twig" %}

{% block html %}
    <div id="top" class="flex-r flex-start">
        <div class="flex3 pos-r">
           <div>
               {% for item in conf %}
                   <a href="#{{ item.table.path }}{{ item.table.name }}">
                       <div class="pad3 bdso flrc">
                           <div>{{ item.table.path }}</div>
                           <div class="flex1">.{{ item.table.name }} </div>
                           <div>{{ item.table.cnName }} </div>
                       </div>
                   </a>
               {% endfor %}
           </div>
        </div>
        <div class="flex8 padl10 bdso">
            {% for item in conf %}
                <div id="{{ item.table.path }}{{ item.table.name }}" class="pad3 padb10 {{ loop.index % 2 ==0?"bc13":"" }}">
                    <div class="pad3 flrc bdtso bdbso bdw3 bdc12 fwb list-style-2">
                        <div class="padr10 flex1">[ {{ item.table.path }} ] </div>
                        <div class="padr10 flex2">{{ item.table.name }} </div>
                        <div class="padr10 flex7">{{ item.table.cnName }} </div>
                    </div>
                    <div>
                        <div class="flrc c12">
                            <div class="flex1">Name</div>
                            <div class="flex1">CnName</div>
                            <div class="flex1">Type</div>
                            <div class="flex1">DefaultValue</div>
                            <div class="flex1">EntityType</div>
                            <div class="flex1">Length</div>
                            <div class="flex1">Nullable</div>
                            <div class="flex1">Src</div>
                        </div>
                        {% for f in item.fields %}
                            <div class="flrc">
                                <div class="flex1">{{ f.Name }}</div>
                                <div class="flex1">{{ f.CnName }}</div>
                                <div class="flex1">{{ f.Type }}</div>
                                <div class="flex1">{{ f.DefaultValue }}</div>
                                <div class="flex1">{{ f.EntityType }}</div>
                                <div class="flex1">{{ f.Length }}</div>
                                <div class="flex1">{{ f.Nullable }}</div>
                                <div class="flex1"><a href="#{{ item.table.path }}{{ f.Src }}">{{ f.Src }}</a></div>
                            </div>
                        {% endfor %}
                    </div>
                </div>
            {% endfor %}
        </div>
    </div>
    <div class="pos-f b0 r0">
        <div class="pad10"><a href="#top">返回顶部</a></div>
    </div>
{% endblock %}